'use strict';

module.exports = app => {
  const { STRING, INTEGER, DATE } = app.Sequelize;

  return app.model.define('t_role_user', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    roleName: {
      type: STRING(255),
      field: 'role_name',
    },
    userId: {
      type: INTEGER,
      field: 'user_id',
    },
    roleId: {
      type: INTEGER,
      field: 'role_id',
    },
  });
};
